<?php error_reporting(0) ?>
<input 
    type="hidden" 
    value="<?php echo $item->image_id ?>" 
    id="ImageId" name="ImageId"
    />
<form id="image_form_edit_panel" name="image_form_edit_panel" 
      action="" method="POST" onsubmit="return false;"
      target="integration_asynchronous" autocomplete="off">
    <div class="widget- row-fluid">
        <div class="well form-horizontal" style="border:none">
		
			<input type="hidden" name="image_album_id" id="image_album_id" 
				value="<?php echo !empty($item->image_album_id)?$item->image_album_id:$albumid ?>"/>
			<div class="control-group">
                <label class="control-label">Photo :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="image_source" name="image_source" 
                           value="<?php echo quotes_to_entities($item->image_source) ?>"
                           />
					<i class="icon-picture field-icon" style="cursor:pointer" 
						onclick="BrowseServer('#image_source')"
						title="CHOOSE IMAGE"></i>
                </div>
            </div>
			
            <div class="control-group">
                <label class="control-label">Title :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="image_title" name="image_title" 
                           value="<?php echo !empty($item->image_title)?quotes_to_entities($item->image_title):'new photo' ?>"
                           />
                </div>
            </div>
			
			<div class="control-group">
                <label class="control-label">Desc :</label>
                <div class="controls">
					<textarea 
							rows="3"
							id="image_desc" name="image_desc" 
							class="span12"
							data-prompt-position="topLeft:-1,-5"
							><?php echo ($item->image_desc) ?></textarea>
                </div>
            </div>
            
            <div class="control-group">
				<label class="control-label">&nbsp;</label>
				<div class="controls">
					<div class="span6">
						<div>POSITION</div>
						<input type="number" 
							class="span12"
							id="image_position" name="image_position" 
							value="<?php echo $item->image_position ?>"
							/>
					</div>
					<div class="span6">
						<div>STATUS</div>
						<select id="image_status" name="image_status" class=" span12">
							<option value="true" <?php if($item->image_status!='false') echo 'selected=1' ?>>ENABLE</option>
							<option value="false">DISABLE</option>
						</select>
						
					</div>
				</div>
			</div>
			
            <div class="control-group">
                <label class="control-label">&nbsp;</label>
                <div class="controls">
                    <div>
                        <?php if (!empty($item->image_insert)) echo "Created  : $item->image_insert" ?>
                    </div>
                    <div>
                        <?php if (!empty($item->image_update)) echo "Modified : $item->image_update" ?>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
    
</form>